package com.example.springblog.utils;


import javax.xml.crypto.Data;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    public static String dateFormat(Date date) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return format.format(date);
    }
    /*public static void main(String[] args) {
        System.out.println(dateFormat(new Date()));
    }*/
}
